package com.alinesno.cloud.base.logger.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * <p>
 * IP和项目名的对应关系
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-26 09:30:11
 */
@Entity
@Table(name = "log_hostinfo")
public class LogHostinfoEntity extends BaseWatcherEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 部署机器对应的项目名
	 */
	private String domain;

	@Column(name = "creation_date")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date creationDate;

	@Column(name = "last_modified_date")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date lastModifiedDate;

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Date getLastModifiedDate() {
		return lastModifiedDate;
	}

	public void setLastModifiedDate(Date lastModifiedDate) {
		this.lastModifiedDate = lastModifiedDate;
	}

	@Override
	public String toString() {
		return "LogHostinfoEntity{" + "ip=" + this.getIp() + ", domain=" + domain + ", hostname=" + this.getHostname() + ", creationDate="
				+ creationDate + ", lastModifiedDate=" + lastModifiedDate + "}";
	}
}
